"""Added works_inside_category to Discount

Revision ID: b6833b0ba9eb
Revises: fffdd67fa0eb
Create Date: 2024-01-19 14:09:34.255871

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "b6833b0ba9eb"
down_revision = "fffdd67fa0eb"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "discount", sa.Column("works_inside_category", sa.Boolean(), server_default=sa.text("false"), nullable=False)
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("discount", "works_inside_category")
    # ### end Alembic commands ###
